<?php

class m131101_215345_create_tbl_logs extends CDbMigration
{
	public function up()
	{
        $this->createTable('tbl_logs',array(
            'id'=>'pk',
            'level'=>'varchar(128)',
            'category'=>'varchar(128)',
            'logtime'=>'int',
            'message'=>'text NOT NULL',
        ),'ENGINE=InnoDB');
	}

	public function down()
	{
		$this->dropTable('tbl_logs');
	}
	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}